package com.dc.free.common.bean;

/**
 * 文件名
 * @author quan
 *
 */
public class FileName {
	private String name;
	private String suffix;
	
	public FileName(String fullName) {
		int index = fullName.lastIndexOf(".");
		this.name = fullName.substring(0, index);
		this.suffix = fullName.substring(index + 1);
	}
	
	public static FileName create(String fullName) {
		return new FileName(fullName);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	
}